/**
 * Created by xinxinran on 2017/1/3.
 */
'use strict';

const cachedProperties = {},
    defaultPropertyName = 'system';


//noinspection JSUnusedGlobalSymbols
module.exports = {
    setPropertyObject : function(name, obj){
        if(!obj && typeof name === 'object'){
            obj = name;
            name = defaultPropertyName;
        }

        cachedProperties[name] = obj;
    },
    getProperty : function(name) {
        name = name || defaultPropertyName;
        return cachedProperties[name];
    }
};